package com.pakazaka.roguelike.body;

/**
 *
 * @author Remi
 */
public final class BodyPart {

    public final static int BP_HEAD = 0, BP_TORSO = 1, BP_HANDS = 2, BP_LEGS = 3;
    private int hp, max_hp;
    private int id;

    public BodyPart(int hp, int id) {
        this.hp = max_hp = hp;
        this.id = id;

    }

    public void hurt(int points) {
        hp -= points;
    }

    public void heal(int points) {
        hp += points;
    }

    public int getMaxHP() {
        return max_hp;
    }

    public int getHP() {
        return hp;
    }
}
